<template>
  <div>
    <div class="where">热门推荐</div>
    <div v-for="item of weekendList" :key="item.id">
      <img :src="item.imgUrl">
      <div class="detail">
        <p class="title">{{item.title}}</p>
        <p class="desc">{{item.desc}}</p>
        <input type="button" value="查看详情" class="btn">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "homeWhere",
    props:{
      weekendList:Array
    }
  }
</script>

<style scoped lang="stylus">
  .where
    font-size .4rem
    background-color #eeeeee
    padding .1rem .3rem
  .detail
    padding .1rem .3rem
    overflow hidden
    .title
      font-size .4rem
    .desc
      margin-top .1rem
      margin-bottom .1rem
  img
    width 100%

</style>
